package com.ctshk.rpc.order.custom.service;


import com.ctshk.common.dto.Result;
import com.ctshk.rpc.order.custom.dto.order.CustomizedOrderReceiptInsuranceDTO;
import com.ctshk.rpc.order.custom.dto.order.PreviewInsuranceReceiptDTO;
import com.ctshk.rpc.order.custom.req.order.PreviewInsuranceReceiptReq;
import com.ctshk.rpc.order.custom.req.order.ReceiptInsuranceAddReq;
import com.ctshk.rpc.order.custom.req.order.UpdateInsuranceReceiptReq;

/**
 * <p>
 * 保单收据 服务类
 * </p>
 *
 * @author 叶冠峰
 * @since 2021-03-05
 */
public interface ICustomizedOrderReceiptInsuranceService {

    /**
     * 生成保单收据
     * @param req
     * @return
     */
    Long createInsuranceReceipt(ReceiptInsuranceAddReq req);

    /**
     * 保单收据预览
     * @param req
     * @return
     */
    Result<PreviewInsuranceReceiptDTO> previewInsurance(PreviewInsuranceReceiptReq req);

    /**
     * 修改保单收据
     * @param req
     * @return
     */
    Result update(UpdateInsuranceReceiptReq req);
}
